﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:DataVisualization="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    xmlns:chartingprimitives="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit">

    <RadialGradientBrush x:Key="LegendBrush0">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                <TranslateTransform X="-0.425" Y="-0.486" />
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="#FFB8C0AC" />
        <GradientStop Color="#FF5F7143" Offset="1" />
    </RadialGradientBrush>

    <RadialGradientBrush x:Key="LegendBrush1">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                <TranslateTransform X="-0.425" Y="-0.486" />
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="#FFD7BD5B" />
        <GradientStop Color="#FFB09925" Offset="1" />
    </RadialGradientBrush>

    <RadialGradientBrush x:Key="LegendBrush2">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                <TranslateTransform X="-0.425" Y="-0.486" />
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="#FFFDE79C" />
        <GradientStop Color="#FFF6BC0C" Offset="1" />
    </RadialGradientBrush>

    <RadialGradientBrush x:Key="LegendBrush3">
        <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                <TranslateTransform X="-0.425" Y="-0.486" />
            </TransformGroup>
        </RadialGradientBrush.RelativeTransform>
        <GradientStop Color="#FFFBB7B5" />
        <GradientStop Color="#FF702828" Offset="1" />
    </RadialGradientBrush>

    <Style x:Key="ChartStyle" TargetType="{x:Type charting:Chart}">
        <Setter Property="BorderBrush" Value="#00000000"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="StylePalette">
            <Setter.Value>
                <DataVisualization:StylePalette>
                    <!-- Light Green -->
                    <Style TargetType="Control">
                        <Setter Property="Background" Value="{StaticResource LegendBrush0}" />
                    </Style>
                    <!-- Darker Yellow -->
                    <Style TargetType="Control">
                        <Setter Property="Background" Value="{StaticResource LegendBrush1}" />
                    </Style>
                    <!-- Yellow -->
                    <Style TargetType="Control">
                        <Setter Property="Background" Value="{StaticResource LegendBrush2}" />
                    </Style>
                    <!--Red-->
                    <Style TargetType="Control">
                        <Setter Property="Background" Value="{StaticResource LegendBrush3}" />
                    </Style>
                    <!--Blue-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFB9D6F7" />
                                    <GradientStop Color="#FF284B70" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!-- Indigo -->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFA9A3BD" />
                                    <GradientStop Color="#FF382C6C" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!-- Magenta -->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFB1A1B1" />
                                    <GradientStop Color="#FF50224F" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!-- Dark Green -->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FF9DC2B3" />
                                    <GradientStop Color="#FF1D7554" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Gray Shade-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFB5B5B5" />
                                    <GradientStop Color="#FF4C4C4C" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Blue-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FF98C1DC" />
                                    <GradientStop Color="#FF0271AE" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!-- Brown -->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFC1C0AE" />
                                    <GradientStop Color="#FF706E41" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Cyan-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFADBDC0" />
                                    <GradientStop Color="#FF446A73" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!-- Special Blue -->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FF2F8CE2" />
                                    <GradientStop Color="#FF0C3E69" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Gray Shade 2-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFDCDCDC" />
                                    <GradientStop Color="#FF757575" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Gray Shade 3-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFF4F4F4" />
                                    <GradientStop Color="#FFB7B7B7" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <!--Gray Shade 4-->
                    <Style TargetType="Control">
                        <Setter Property="Background">
                            <Setter.Value>
                                <RadialGradientBrush>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2.09" ScaleY="1.819" />
                                            <TranslateTransform X="-0.425" Y="-0.486" />
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                    <GradientStop Color="#FFF4F4F4" />
                                    <GradientStop Color="#FFA3A3A3" Offset="1" />
                                </RadialGradientBrush>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </DataVisualization:StylePalette>
            </Setter.Value>
        </Setter>
        <Setter Property="LegendStyle">
            <Setter.Value>
                <Style TargetType="DataVisualization:Legend">
                    <Setter Property="BorderThickness" Value="0" />
                    <Setter Property="Margin" Value="0" />
                    <Setter Property="VerticalAlignment" Value="Center" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="ChartAreaStyle">
            <Setter.Value>
                <Style TargetType="Panel">
                    <Setter Property="MinWidth" Value="0" />
                    <Setter Property="MinHeight" Value="0" />
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type charting:Chart}">
                    <chartingprimitives:EdgePanel x:Name="ChartArea" Style="{TemplateBinding ChartAreaStyle}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="charting:PieSeries">
        <Setter Property="Margin" Value="0" />
    </Style>
</ResourceDictionary>